package com.sluggard.ai.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sluggard.mp.model.entity.StandardAuditEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * ai历史对话记录
 * </p>
 *
 * @author lizheng
 * @since 2025-04-23
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ai_history_message")
@Schema(name = "HistoryMessageEntity", description = "ai历史对话记录")
public class HistoryMessageEntity extends StandardAuditEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "会话id")
    @TableField("conversation_id")
    private String conversationId;

    @Schema(description = "消息类型")
    @TableField("message_type")
    private String messageType;

    @Schema(description = "消息角色")
    @TableField("role")
    private String role;

    @Schema(description = "对话内容")
    @TableField("content")
    private String content;

    @Schema(description = "状态 0 正常 1 异常")
    @TableField("status")
    private Integer status;
}
